package com.oo.inherit_3.computer;

/**
 * CPU--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 10:31
 **/
public class CPU {

    private int main;

    private String number;

    private String name;

    public CPU(int main, String number, String name) {
        this.main = main;
        this.number = number;
        this.name = name;
    }

    public CPU() {
    }

    public int getMain() {
        return main;
    }

    public void setMain(int main) {
        this.main = main;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected void work() {
        System.out.println(this.getName() + "开始工作......\n主频：" + this.getMain() + "\n核心数量：" + this.getNumber());
    }
}
